﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Permission.Entity
{
    /// <summary>
    /// 权限
    /// </summary>
    public class Authorize
    {
        /// <summary>
        /// 权限标识
        /// </summary>
        [Key]
        public virtual String id { get; set; }
        /// <summary>
        /// 权限（中文）名称
        /// </summary>
        public virtual String title { get; set; }
        /// <summary>
        /// 权限（英文）名称
        /// </summary>
        public virtual String name { get; set; }
        /// <summary>
        /// 权限ICON
        /// </summary>
        public virtual String icon { get; set; }
        /// <summary>
        /// 节点是否展开
        /// </summary>
        public virtual Boolean expand { get; set; }
        /// <summary>
        /// 节点是否半选
        /// </summary>
        public virtual Boolean indeterminate { get; set; }
        /// <summary>
        /// 节点是否选中
        /// </summary>
        public virtual Boolean @checked { get; set; }
        /// <summary>
        /// 节点路由
        /// </summary>
        public virtual String route { get; set; }
        /// <summary>
        /// 父节点Guid
        /// </summary>
        public virtual String parentId { get; set; }
        /// <summary>
        /// 父节点
        /// </summary>
        public virtual Authorize parent { get; set; }
        /// <summary>
        /// 节点存在的子节点
        /// </summary>
        public virtual List<Authorize> children { get; set; }
    }
}
